package com.learn.project2.controller.wx.feedback;

import com.learn.project2.model.bo.wx.feedback.FeedbackSubmitBO;
import com.learn.project2.service.admin.feedback.FeedbackService;
import com.learn.project2.service.wx.feedback.FeedbackService2;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @description:
 * @author zhizhuke
 * @date 2022-01-08 17-16
 * @version 1.0
 */
@RestController
@RequestMapping("wx/feedback")
public class FeedbackController2 {
    @Autowired
    FeedbackService2 feedbackService2;

    /** 
     * @description: 
     * @param:  
     * @return:  
     * @author zhizhuke
     * @date: 2022-01-11 08:45
     */ 
    @RequestMapping("submit")
    public Result submit(@RequestBody FeedbackSubmitBO feedbackSubmitBO){
        feedbackService2.submit(feedbackSubmitBO);

        return Result.ok();
    }

}
